package com.yang.service.Impl;

import com.yang.mapper.SysUserRoleMapper;
import com.yang.pojo.SysUserRole;
import com.yang.service.SysUserRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 杨天可
 * @Date 2021/6/11 10:28
 * @Version 1.0
 */
@Service("sysUserRoleService")
@Transactional
public class SysUserRoleServiceImpl implements SysUserRoleService {
    @Resource
    SysUserRoleMapper sysUserRoleMapper;

    @Override
    public List<SysUserRole> findRoleByUserId(Integer userId) {
        return sysUserRoleMapper.findRoleByUserId(userId);
    }
}
